package object;

import java.time.LocalDate;

/**
 * @TODO  3. 计算食品的过期时间
 * @Author xu
 * 2025/3/10
 */

import java.time.LocalDate;
public class LocalDate03 {
    public static void main(String[] args) {
        LocalDate productionDate = LocalDate.of(2024, 5, 10);
        LocalDate expirationDate = productionDate.plusDays(180);

        System.out.println("过期时间是: " + expirationDate);
    }
}
